package com.zzzyh.ioc.controller;

import jakarta.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoggerController {

    private static final Logger logger = LoggerFactory.getLogger(LoggerController.class);

    @PostConstruct
    public void doController() {
        System.out.println("日志打印：");
        logger.info("日志打印：");
        logger.error("日志打印：");
        logger.debug("日志打印：");
        logger.warn("日志打印：");
        logger.trace("日志打印：");
    }
}
